const mongoose = require("mongoose");

mongoose.connect(
  "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/wuwei-group",
  {
    useNewUrlParser: true,
    useUnifiedTopology: true,
    auth: { authSource: "admin" },
  },
  () => {
    console.log("db is running...");
    require("./model/users");

    require("./model/stores");
    require("./model/order");
    require("./model/shopGoods");
    require("./model/distribution");
  }
);
